var express = require('express');
var router = express.Router();
var path = require('path');
var query = require('./Database')
/* GET home page. */
router.get('/', function(req, res, next) {
    res.render('smshowcity', {});
});
router.post('/address',async (req,res,next)=>{
    let list = req.body;
    console.log(list);
    let rows = await query("update  users set address = '"+list.address+"' where id = " + list.userid);
    // let data = [{code:100},rows];
    // res.send(data);
});
module.exports = router;